﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ControllerLag;

namespace Projekt_1
{
    public partial class FrmHovedside : Form
    {
		Controller controller;

        public FrmHovedside()
        {
            InitializeComponent();
			controller = new Controller();
        }

		private void btnOrdre_Click(object sender, EventArgs e)
		{
			OrdreGUI form = new OrdreGUI(controller);
			form.ShowDialog();
		}

		private void btnSupport_Click(object sender, EventArgs e)
		{
			SupporterForm form = new SupporterForm(controller);
			form.ShowDialog();
		}

		private void btnHomeparty_Click(object sender, EventArgs e)
		{
			FrmHomeparty form = new FrmHomeparty(controller);
			form.ShowDialog();
		}

		private void btnVarer_Click(object sender, EventArgs e)
		{
			FrmVareListe form = new FrmVareListe(controller);
			form.ShowDialog();
		}

        private void btnLuk_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnNySælger_Click(object sender, EventArgs e)
        {
            FrmSælger form = new FrmSælger(controller);
            form.ShowDialog();
        }

        private void btnFindHomeparty_Click(object sender, EventArgs e)
        {
            FrmFindHomeparty form = new FrmFindHomeparty(controller);
            form.ShowDialog();
        }

        
    }
}
